package com.cdks.wuxiu.api.model.vo;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class QuizQuestionInfoVO {
    /**
     * 主题id
     */
    @ApiModelProperty(value = "topicId")
    private String topicId;

    /**
     * 问题序号
     */
    @ApiModelProperty(value = "index")
    private Integer index; 

    /**
     * 问题类型
     */
    @ApiModelProperty(value = "type")
    private Integer type; 

    /**
     * 问题图片/音频/视频列表
     */
    @ApiModelProperty(value = "fileList")
    private List<String> fileList;

    /**
     * 问题内容
     */
    @ApiModelProperty(value = "content")
    private String content;

    /**
     * 问题选项
     */
    @ApiModelProperty(value = "问题选项")
    public List<Option> option;

    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class Option {
        /**
         * 选项标题
         */
        @ApiModelProperty(value = "title")
        private String title; 
        
        /**
         * 分数
         */
        @ApiModelProperty(value = "score")
        private Integer score;         
        
        /**
         * 下一题序号
         */
        @ApiModelProperty(value = "nextIdx")
        private Integer nextIdx;         
    }    
}
